<template>
  <div class="transfer-order-finish-footer">
    <div class="layout">
      <h2 class="bottom-title">调度处理信息</h2>
      <section class="row">
        <section class="column">
          <span class="first-column">首次受理</span>
          <span>{{transferOrderDetail.firstAcceptTime}}</span>
        </section>
        <section class="column">
          <span>受理人</span>
          <span>{{transferOrderDetail.acceptor}}</span>
        </section>
        <section class="column">
          <span>首次派车</span>
          <span>{{transferOrderDetail.outCarTime}}</span>
        </section>
        <section class="column">
          <span>车辆标识</span>
          <span>{{transferOrderDetail.ambRealSign}}</span>
        </section>
      </section>
      <section class="row">
        <section class="column">
          <span class="first-column">司机</span>
          <span>{{transferOrderDetail.driver}}</span>
        </section>
        <section class="column">
          <span>医生</span>
          <span>{{transferOrderDetail.doctor}}</span>
        </section>
        <section class="column">
          <span>护士</span>
          <span>{{transferOrderDetail.nurse}}</span>
        </section>
        <section class="column nav">
          <button class="confirm" @click="GoToTransferList">确认</button>
          <button class="detail" @click="SeeAcceptEvent">详情>>></button>
        </section>
      </section>
    </div>
  </div>
</template>

<script>
// import CONFIG from "../../static/config";
export default {
  name: "TransferOrderFinishFooter",
  props: {
    transferOrderDetail: {
      type: Object,
    },
  },
  methods: {
    SeeAcceptEvent() {
      this.$router.go(-1);
      let url = `${CONFIG.ACCEPTEVENTURL}EventCode=${this.transferOrderDetail.eventCode}&WorkID=${this.transferOrderDetail.workId}`;
      window.open(url);
    },
    GoToTransferList() {
      this.$router.go(-1);
    },
  },
};
</script>

<!-- Add "scoped" attribute to limit CSS to this component only -->
<style scoped>
.transfer-order-finish-footer {
  margin-top: 1.5%;
  height: 13%;
  position: relative;
  width: 100%;
  padding: 0 5%;
  padding-top: 1.5%;
  margin-bottom: 1%;
  background: url("../assets/image/content-angle-bg.png") rgba(6, 53, 128, 0.2);
  background-size: 100% 100%;
  position: relative;
}
.layout {
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  height: 100%;
}
.row {
  display: flex;
}
.column {
  display: flex;
  width: 25%;
}
.column .first-column {
  display: block;
  width: 24% !important;
  text-align: left !important;
  padding-right: 0 !important;
}
.column > span:nth-child(1) {
  display: block;
  width: 40%;
  text-align: right;
  padding-right: 3%;
}
.column > span:nth-child(2) {
  display: block;
  width: 60%;
  border: solid 1px rgba(0, 181, 243, 0.7);
  background: rgba(6, 53, 128, 0.3);
  padding-left: 10px;
}
.bottom-title {
  font-size: 24px;
  color: rgba(80, 144, 165, 1);
  text-align: center;
  height: 46px;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: -23px;
  position: absolute;
  top: 0;
  left: 50%;
  width: 200px;
  margin-left: -100px;
}
.nav {
  display: flex;
  justify-content: flex-end;
}
.confirm {
  background: rgba(237, 105, 92, 1);
  color: #fff;
  padding: 2px 30px;
  border: none;
  cursor: pointer;
  outline: none;
  margin-right: 15%;
  font-size: 19px;
}
.detail {
  color: #009966;
  background: rgba(0, 0, 0, 0);
  border: none;
  cursor: pointer;
  outline: none;
  font-size: 19px;
}
</style>